<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
	<head>
		<title>日志列表</title>
		<link href="style/global.css" rel="stylesheet" type="text/css" />
		<link href="style/style.css" rel="stylesheet" type="text/css" />
		<sx:head />
		<style type="text/css">
<!--
.STYLE1 {
	font-size: 18px;
	color: #000000;
}



#userInfo {
}

#middle {
	 width: 1080px;
	border:1px #cccccc solid;
	
}

#userinfoLeft {
	border:1px #cccccc solid;
	margin-left:30px;
	width: 344px;
	height: 184px;
	float:left;
	
}

#bottom1 {
	 
	
}

#usrinfoRight {
	
	width: 435px;
	left: 400px;
	top: 2px;
}

#infoModify {
	position: 固定;
	height: 30px;
	width: 400px;
}

#modify {
	

	width: 500px;
}

.STYLE2 {
	color: #009900
}

.STYLE3 {
	font-size: 18px
}

.STYLE5 {
	font-size: 18px;
	color: #663300;
}
-->
</style>
	</head>



	<body>

		<div id="userInfo" align="center">
			<div id="top"><%@include file="top.jsp"%></div>

			<div id="middle">
				<div id="userinfoLeft">
					<table width="340">
						<tr>
							<td colspan="3">
								<div align="center">
									<img src="UploadImages/${blogUser.headImage}" height="100px"
										width="120px" />
									&nbsp;
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<div align="center">
									加博友
								</div>
							</td>
							<td>
								<div align="center">
									<a href="leaveWord.jsp">留言</a>
								</div>
							</td>
						</tr>
						<tr>
							<td width="82">
								博客等级
							</td>
							<td width="54">
								${user.blogGrade}
							</td>
							<td>
								&nbsp;
							</td>
						</tr>
						<tr>
							<td>
								访问量
							</td>
							<td>
								${user.visitNumber}
							</td>
							<td>
								&nbsp;
							</td>
						</tr>
					</table>
					</div>
					<div id="usrinfoRight">
						<table>

							<tr >
								<td height="30px" style="border-bottom:1px #cccccc dash">
									博客名称：
								</td>
								<td height="30px" style="border-bottom:1px #cccccc solid"> 
									<s:property value="#session.blogUser.blogName" />
								</td>
							</tr>
							<tr>
								<td>
									Email:
								</td>
								<td>
									<s:property value="#session.blogUser.email" />
								</td>
							</tr>
							<tr>
								<td>
									博客等级:
								</td>
								<td>
									<s:property value="#session.blogUser.blogGrade" />
								</td>
							</tr>
							<tr>
								<td>
									出生年月:
								</td>
								<td>
									<s:property value="#session.blogUser.birthday" />
								</td>
							</tr>
							<tr>
								<td>
									性别:
								</td>
								<td>
									<s:property value="#session.blogUser.sex" />
								</td>
							</tr>
							<tr>
								<td>
									地址:
								</td>
								<td>
									<s:property value="#session.blogUser.address" />
								</td>
							</tr>
							<tr>
								<td>
									上次访问时间:
								</td>
								<td>
									<s:property value="#session.user.lastLoginTime" />
								</td>
							</tr>
							<tr>

							</tr>
						</table>
						<div id="infoModify">


							<c:if test="${blogUser.account == user.account}">
								<ul class="STYLE2">
									<li>
										<span class="STYLE5"> <sx:a href="modifyinfo.action"
												targets="modify" id="link1">修改个人资料</sx:a> 
										</span>
									</li>
								</ul>
							</c:if>
							<c:if test="${blogUser.account == user.account}">
								<ul class="STYLE2">
									<li>
										<span class="STYLE5"> <sx:a id="link2"
												href="modifypassword.action" targets="modify">修改个人密码 </sx:a>
										</span>
									</li>
								</ul>
							</c:if>
							<c:if test="${blogUser.account == user.account}">
								<ul class="STYLE2">
									<li>
										<span class="STYLE5"> <sx:a id="link3"
												href="modifyimage.action" targets="modify">修改个人头像 </sx:a>
										</span>
									</li>
								</ul>
							</c:if>
						</div>
						<div id="modify"></div>
					</div>
				
			</div>
			
			
			
		</div>
<div id="bottom1"><%@include file="bottom.jsp"%></div>
	</body>
</html>